package com.sg.dto.integration.app;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc SubordinateChargeSmallCircleDto
 * @使用场景
 */
@Data
public class SubordinateChargeSmallCircleDto
        extends BaseDto
        implements Serializable {

    /**
     * 身份人员ID
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;

    /**
     * 冗余内容表主键ID
     */
    @ApiModelProperty("冗余内容表主键ID")
    private String entityId;

    /**
     * 虚拟组织成员ID
     */
    @ApiModelProperty("虚拟组织成员ID")
    private String virtualOrgMemberId;

    /**
     * 账号ID
     */
    @ApiModelProperty("账号ID")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        SubordinateChargeSmallCircleDto that = (SubordinateChargeSmallCircleDto) o;
        return (
                originalRoleMemberId == that.originalRoleMemberId &&
                        entityId == that.entityId &&
                        virtualOrgMemberId == that.virtualOrgMemberId &&
                        userId == that.userId &&
                        userFace == that.userFace &&
                        idCardName == that.idCardName &&
                        nickName == that.nickName
        );
    }

    @Override
    public int hashCode() {
        return Objects.hash(
                super.hashCode(),
                originalRoleMemberId,
                entityId,
                virtualOrgMemberId,
                userId,
                userFace,
                idCardName,
                nickName
        );
    }

}
